package cn.kmia.hrm.pojo.system;

import cn.kmia.hrm.pojo.BasePojo;
import org.nutz.dao.entity.annotation.*;

import java.io.Serializable;

/**
 * @项目：hrm
 * @作者：4K
 * @描述：角色权限表
 * @日期：created in 10:30 2017/4/5
 */
@Table("sys_role_permission")
@PK( {"roleId", "permissionId"} )
public class RolePermission extends BasePojo implements Serializable {

    /**
     * 角色id
     */
    @Column("role_id")
    @Comment("角色id")
    @ColDefine(type = ColType.INT)
    private int roleId;

    /**
     * 权限id
     */
    @Column("permission_id")
    @Comment("权限id")
    @ColDefine(type = ColType.INT)
    private int permissionId;

    public int getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(int permissionId) {
        this.permissionId = permissionId;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

}
